----------------------------------Spell Variables--------------------------------------
SPELL.m_iSpellID = 510 -- Whatever value you want as long as it doesn't override any other spells' IDs.
SPELL.m_iRange = 0
SPELL.m_sName = "Burst of Speed"
SPELL.m_sToolTip = [[You gain a burst of
					speed, increasing your
					movement speed by 50% for
					8 seconds.]]
SPELL.m_sIcon = "devin/blackbetty/spells/warrior/speed.png"
SPELL.m_iCoolDown = 0
SPELL.m_iManaCost = 40
SPELL.m_bRequiresTarget = false
SPELL.m_iSpellType = SPELLTYPE_MOBILITY

---------------------------------------------------------------------------------------

local range = 100
local weapondamage = 20

function SPELL:Cast( pl, target )
	print("Casted "..self.m_sName.."!")
	pl:DoAnimationEvent(ACT_GMOD_GESTURE_BECON)
	pl:EmitSound("devin/blackbetty/weapons/Warrior_Bloodbath.wav", 100, 100)
	pl.Speed = true 
	pl.SpeedMod = 1.9
	pl.SpeedModDuration = 4
	pl.SpeedType = "Charge"
	timer.Simple(0.2, function()
	pl:SetNWBool("Casting", false) 
	pl:SetNWBool("Casted", false)
	end)
end



